package com.runfast.waimai.service;

import com.runfast.common.service.IService;
import com.runfast.waimai.dao.model.WaiMaiRunfastAgentbusiness;
import com.runfast.waimai.dao.model.WaiMaiRunfastAgentbusinessExample;

import java.util.List;
import java.util.Map;

public interface WaiMaiRunfastAgentbusinessService extends IService<WaiMaiRunfastAgentbusiness, Integer, WaiMaiRunfastAgentbusinessExample> {

    List<Integer> findByAgentId(Integer agentId);

    Integer countAgentByExample(Map<Object,Object> map1);
    List<WaiMaiRunfastAgentbusiness> selectAgentByExampleWithPageable(Map<Object,Object> map1);

    /**根据代理商的id查询代理商*/
    WaiMaiRunfastAgentbusiness setAgent(Integer agentId);
    /**跑腿订单代理商统计*/
    List<WaiMaiRunfastAgentbusiness> selectAgentStatisticsByMapWithPageable(Map<Object,Object> map);
    Integer countAgentStatisticsByMap(Map<Object,Object> map);
}